<template>

    用户身份证号: {{userInfo.id}}
    姓名: {{userInfo.name}}
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import { personApi } from '@/api/index'

import  {appStore} from "@/store/appStore"
import {storeToRefs} from "pinia"
 let { userInfo } = storeToRefs(appStore())

onMounted(() => {

    personApi.select.call().then((res) => {
        console.log(res)

    })

})
</script>
